'use strict';

/**
 * 通用字典库
 */

// 分页
exports.PAGE_SIZE = 10;

// 特征数量限制
exports.FEATURE_MIN = 1; //特征最小数
exports.FEATURE_MAX = 20; //特征最大数

//照片大小显示
exports.IMG_WIDTH_MIN = 50;
exports.IMG_WIDTH_MAX = 2000;
exports.IMG_HEIGHT_MIN = 50;
exports.IMG_HEIGHT_MAX = 2000;

// 用户角色
exports.ROLE_HR = 0; //人事
exports.ROLE_OPERATION = 1; //运营
exports.ROLE_ADMIN = 2; //管理员

//urls
//员工批量注册
exports.URL_UPLOAD_STAFF = '/api/user/register_batch'
//访客批量注册
exports.URL_UPLOAD_GUEST = '/api/user/guest_register_batch'
//特征批量上传
exports.URL_UPLOAD_FEATURE_BATCH = '/api/user/feature_register_batch'
//合并用户特征
exports.URL_USER_MERGE_FEATURE = '/api/user/merge_feature'
//清除用户信息
exports.URL_USER_RECOVERY = '/api/user/recovery'
//清空用户数据
exports.URL_USER_CLEAN = '/api/user/clean'

//增加系统账号
exports.URL_ADD_ACCOUNT = '/api/account/add'
//查询当前系统所用账号
exports.URL_GETALL_ACCOUNT = '/api/account/query'
//删除账号
exports.URL_DELETE_ACCOUNT = '/api/account/delete'

//修改系统账号
exports.URL_UPDATE_ACCOUNT = '/api/account/update'
//重置账号密码
exports.URL_RESET_PASSWORD = "/api/account/reset_pwd"
//设置门禁时间
exports.URL_SET_GUARDTIME = "/api/config/add"
//获取门禁时间
exports.URL_GET_GUARDTIME = "/api/config/query?type=2"
//添加部门
exports.URL_ADD_DEPART = '/api/config/dept'
//更新部门
exports.URL_UPDATE_DEPART = '/api/config/dept'
//删除部门
exports.URL_DELETE_DEPART = '/api/config/dept'
//获取全部部门数据
exports.URL_GETALL_DEPART = '/api/config/query?type=0'
//清空缓存数据
exports.URL_CACHE_CLEAN = '/api/config/clean'
//获取下载抓拍图片url
exports.URL_GETDOWNLOAD_URL = '/api/record/get_download_url'
//清空历史记录数据
exports.URL_RECORD_CLEAN = '/api/record/clean'
//陌生人记录迁移至用户
exports.URL_RECORD_TO_USER = '/api/record/record_to_user'

//获取上传记录
exports.URL_GET_LOGINFO_RECORD = '/api/download/get_download_file_path'
//开始下载 上传记录结果
exports.URL_LOGINFO_START_DOWNLOAD = '/api/download/start_download_file'

//查询所有IPC
exports.URL_GET_IPCLIST = '/api/ipc/query'
//添加IPC
exports.URL_ADD_IPC = '/api/ipc/add'
//更新IPC
exports.URL_UPDATE_IPC = '/api/ipc/update'
//更新门禁设置
exports.URL_UPDATE_GUARD = '/api/ipc/do_guard'
//获取门禁信息
exports.URL_GET_GUARD = '/api/ipc/query_guard'
//删除IPC
exports.URL_DELETE_IPC = '/api/ipc/delete'
//重启IPC
exports.URL_RESTART_IPC = '/api/ipc/restart'
//停止IPC
exports.URL_STOP_IPC = '/api/ipc/stop'


//人流量
exports.URL_GET_TRAFFIC = '/api/stat/traffic'

//布控管理
exports.URL_GET_TRACK = '/api/track/search'

//设置IP
exports.URL_SET_LOCALCONFIG = '/api/config/add'
//获取IP 配置
exports.URL_GETALL_IPCONFIG = '/api/config/query?type=3'

//获取本机IP配置
exports.URL_GET_LOCALCONFIG = '/api/config/get_eno'
//设置本机IP配置
exports.URL_SET_LOCALIPCONFIG = '/api/config/set_ip'
//重启
exports.URL_RESTART_LOCALCONFIG = '/api/config/restart'

//查询logo配置
exports.URL_GET_LOGO = '/api/config/query?type=4'
//更新logo配置
exports.URL_SET_LOGO = '/api/config/add'
exports.URL_CUSTOM_QUERY = '/api/custom/query'
exports.URL_CUSTOM_ADD = '/api/custom/add'
exports.URL_CUSTOM_UPDATE = '/api/custom/update'
exports.URL_CUSTOM_DELETE = '/api/custom/delete'

//查询用户显示配置
exports.URL_GET_USERS_SHOW = '/api/config/query?type=5'
exports.URL_SET_USERS_SHOW = '/api/config/add'

//查询活体检测开关
exports.URL_GET_LIVENESS_DETECT = '/api/config/query?type=6'
exports.URL_SET_LIVENESS_DETECT = '/api/config/add'

//查询陌生人自动入库开关
exports.URL_GET_STRANGER_SWITCH = '/api/config/query?type=7'
exports.URL_SET_STRANGER_SWITCH = '/api/config/add'

//会议相关接口
exports.URL_GET_MEETING_AUTH = '/api/config/query?type=8'
exports.URL_SET_MEETING_AUTH = '/api/config/add'
exports.URL_MEETING_CREATE = '/api/meet/create'
exports.URL_MEETING_UPDATE = '/api/meet/modify'
exports.URL_MEETING_DELETE = '/api/meet/remove'
exports.URL_MEETING_QUERY = '/api/meet/query_meet'
exports.URL_MEETING_QUERY_USER = '/api/meet/query_user'
exports.URL_MEETING_CREATE_INVITE = '/api/meet/invite_create'
exports.URL_MEETING_QUERY_INVITE = '/api/meet/query_invite'
exports.URL_MEETING_REMOVE_USER = '/api/meet/remove_user'
exports.URL_MEETING_ADD_USER = '/api/meet/add_user'

